﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.RoboticOperationMerge.ObservedObjectChangedEventArgs
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System;
using Tecnomatix.Engineering;


namespace DnProcessSimulateCommands.RoboticOperationMerge;

internal class ObservedObjectChangedEventArgs : EventArgs
{
  private ITxObject m_nodeObject;
  private ObservedObjectAction m_observedObjectAction;
  private TxObjectList m_relatedObjects;

  public ObservedObjectChangedEventArgs(ITxObject nodeObject, ObservedObjectAction action)
  {
    this.m_nodeObject = nodeObject;
    this.m_observedObjectAction = action;
    this.m_relatedObjects = new TxObjectList();
  }

  public ObservedObjectChangedEventArgs(
    ITxObject nodeObject,
    ObservedObjectAction action,
    TxObjectList relatedObjects)
  {
    this.m_nodeObject = nodeObject;
    this.m_observedObjectAction = action;
    if (relatedObjects != null)
      this.m_relatedObjects = relatedObjects;
    else
      this.m_relatedObjects = new TxObjectList();
  }

  public ITxObject NodeObject
  {
    get => this.m_nodeObject;
    set => this.m_nodeObject = value;
  }

  public ObservedObjectAction ObservedObjectAction
  {
    get => this.m_observedObjectAction;
    set => this.m_observedObjectAction = value;
  }

  public TxObjectList RelatedObjects
  {
    get => this.m_relatedObjects;
    set => this.m_relatedObjects = value;
  }
}
